<template>
	<view>
		<uni-table stripe emptyText="暂无更多数据">
			<uni-tr>
				<uni-th width="48px">序号</uni-th>
				<uni-th>物流公司</uni-th>
				<uni-th>运单号</uni-th>
				<uni-th>创建时间</uni-th>
				<uni-th>收货人</uni-th>
				<uni-th>联系电话</uni-th>
				<uni-th>收货地址</uni-th>
				<uni-th>商户</uni-th>
				<uni-th>制单</uni-th>
				<uni-th>
					<view style="display: flex;gap: 5px;">
						<text class="gl-link gl-link-success" @click="eventCarry">发货</text>
					</view>
				</uni-th>
			</uni-tr>
			<uni-tr v-for="(item, index) in data" :key="index">
				<uni-td>{{index + 1}}</uni-td>
				<uni-td>{{item.trade_name}} </uni-td>
				<uni-td>{{item.trade_no}}</uni-td>
				<uni-td>{{item.create}}</uni-td>
				<uni-td>{{item.name}}</uni-td>
				<uni-td>{{item.phone}}</uni-td>
				<uni-td>{{item.address}}</uni-td>
				<uni-td>{{item.pid}}</uni-td>
				<uni-td>{{item.answer}}</uni-td>
				<uni-td> <text class="gl-link gl-link-base" @click="eventSelect">查询</text> </uni-td>
			</uni-tr>
		</uni-table>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				sConf: getApp().globalData
			}
		},
		props: {
			data: {
				type: Array,
				default: []
			}
		},
		methods: {
			eventSelect() {
				uni.showToast({
					title: '功能不可用'
				})
			},
			eventCarry() {
				this.$emit('eventCarry')
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>